/**
 * Created by kangdaye on 16/5/15.
 */
app.service('adConfigService',["$http", function($http) {
    this.getConfig = function (callback) {
        $http.get(servicePath + 'ad/get_config').success(callback);
    };

    this.updateBanner = function (postData,callback) {
        $http.post(servicePath + 'ad/update_banner',postData).success(callback);
    };

    this.updateSales = function (postData,callback) {
        $http.post(servicePath + 'ad/update_sales',postData).success(callback);
    };

    this.updateMiddle = function (postData,callback) {
        $http.post(servicePath + 'ad/update_middle',postData).success(callback);
    };

}]);
